package com.collect.zambia.zhiScene.zhiCollection.zhiAdmin.zhiSort;

import com.collect.zambia.zhiBean.zhiReceive.ZHIRGroupPerformanceOrderEntity;

import java.util.Comparator;

public class ZHIAdminCompareByRateDES implements Comparator<ZHIRGroupPerformanceOrderEntity> {
    @Override
    public int compare(ZHIRGroupPerformanceOrderEntity o1, ZHIRGroupPerformanceOrderEntity o2) {
        if (o1.getSettledRateFloat() < o2.getSettledRateFloat()) {
            return -1;
        } else if (o1.getSettledRateFloat() < o2.getSettledRateFloat()) {
            return 0;
        } else {
            return 1;
        }
    }
}
